// 公共样式类
html,
body,
ul,
li,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
img {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

.fl {
    float: left
}

.fr {
    float: right
}

.al {
    text-align: left
}

.ac {
    text-align: center
}

.ar {
    text-align: right
}

.hide {
    display: none
}

.overflow {
    overflow: hidden;
}

.rel {
    position: relative;
}

.abs {
    position: absolute;
}

// 图片预览样式
.preview {
    background-color: #eceeed;
}

.preview .ivu-card-body {
    padding-left: 0;
}

.magnify-content {
    min-width: 1000px;
    height: 100%;
    min-height: 500px;
}

.ivu-card,
/deep/ .ivu-card-body,
.magnify-img {
    height: 100%;
}

.magnify-img {
    display: flex;
    justify-content: center;
    flex-flow: row nowrap;

    .preview_img {
        min-width: 600px;
        // min-height: 500px;
        flex: 2 0 auto;
        background-color: #ccc;
        position: relative;
    }

    .incomeInfo {
        width: 130px;
        flex-shrink: 0;
    }

    .preview_imgInfo {
        position: relative;
        flex-shrink: 0;
        width: 20px;
        // height: 500px;
        overflow: hidden;
        transition: all .2s linear;

        &.rightActive {
            width: 200px;

            .activeIcon i {
                transform: rotate(180deg);
            }
        }

        .preview_imgInfo_box {
            position: absolute;
            margin-left: 20px;
            width: 180px;
            height: 100%;
        }

        .activeIcon {
            position: absolute;
            top: 0;
            left: 0;
            width: 20px;
            height: 100%;
            background-color: #eee;
            font-size: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 2;
        }
    }

    .file-box {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .pdf,
    .img,
    .video {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    video,
    img,
    embed {
        max-width: 100%;
        max-height: 100%;
    }

    .dealerSign {
        position: absolute;
        left: calc(100% - 300px);
        top: 0;
        z-index: 101;
        max-width: 300px;
        max-height: 300px;
        transform: none;
    }
}

.magnify-img .incomeInfo>li {
    padding: 0 5px;
    color: black;
}

.magnify-img .incomeInfo>li:first-child {
    padding: 0;
}

.magnify-img .incomeInfo h4 {
    background-color: #f87c3c;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
}

.preview_img img {
    // height: 200px;
    max-height: 100%;
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    // cursor: pointer;
}

.discard {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray;
    opacity: .3;
}

.magnify-time {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 14px;
    z-index: 10;
}

.preview_img .magnify-footer {
    width: 400px;
    bottom: -5px;
    position: absolute;
    text-align: center;
    color: #fff;
    z-index: 9;
    left: 50%;
    transform: translateX(-50%);
}

.magnify-toolbar .ivu-btn-primary {
    margin-bottom: 10px;
}

// 右侧边
.preview_imgInfo p.select {
    display: flex;
    height: 30px;
    padding: 3px 5px;
    background: #1eb3f7;
    color: white;
    margin-bottom: 15px;

    span {
        display: block;
        width: 100px;
        line-height: 24px;
    }

    .ivu-select-small.ivu-select-single .ivu-select-selection {
        margin-top: 3px;
    }
}


.preview_imgInfo .imgInfo-list {
    height: calc(100% - 90px);
    padding-left: 10px;
    overflow-x: hidden;
    overflow-y: auto;

    li {
        width: 150px;
        background-color: #858585;
        height: 25px;
        border-radius: 5px;
        margin-top: 15px;
        line-height: 25px;
        color: #fff;
        padding-left: 10px;
        cursor: pointer;
    }

    .active {
        background-color: #1eb3f7;
    }
}

.container {
    position: relative;
    height: calc(100% - 100px);
}

// 缩略图
.foot {
    padding: 8px 120px 0;
    height: 90px;
}

.thum {
    position: relative;
    height: 80px;
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    overflow-x: hidden;
    overflow-y: auto;

    li {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80px;
        height: 80px;
        margin: 0 5px;
        border: 3px solid transparent;
    }

    .thum-checkbox {
        position: absolute;
        top: 3px;
        left: 3px;
    }
}

.historyVersion {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fff;
}

.thum>li.cur {
    border-color: #09a3e4;
}

.thum>li img {
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

.showHistory {

    .ivu-select-dropdown,
    .ivu-dropdown-item {
        width: 50px;
    }
}
